How do I point to the project when using the "-p" command line switch? |
Re: "-p" Command Line Switch format |
Re: "-p" Command Line Switch format OurGuest - Tue Aug 09 10:39:35 EDT 2011 Any ideas? Thanks |
Re: "-p" Command Line Switch format |
Re: "-p" Command Line Switch format SteveDennehy - Tue Aug 09 12:17:13 EDT 2011 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: "-p" Command Line Switch format However it does seem to open the specified project. -p "NameProject" ... works -p "/NameProject"... works -p "\NameProject"... does not work So if you have a script that works on the "current project" no matter which one, you can have multiple shortcuts or scheduled tasks using the same exact script, each specifying a different Project. However, the -p switch seems to be the only way to set context. Using switches I see no way to set some current Folder such as "Test Project/460706YY00000B04"; nor any way to open a Module and set that Current. Those chores must be done in the DXL you are executing, which then forces a single "current module" script to have multiple wrapper DXL to run them in batch. Not going to try, but I suppose instead you could also do this. Have your DXL read the name of the desired module, and set that name with another DXL: {} Write your 'current Module' script like this: .... void DealWithModule(module mod) {whatever I want to do} .... string NameMod = getenv("MyBatchModuleName") .... Module mod = read(NameMod, false, true) .... if (!null mod){DealWithModule(mod); close(mod)} {} Invoke the above script with the "-batch" switch ... -b "c:/MyDXL/MyModuleScript.dxl" {} Set the value with this switch: ... -dxl "setenv(\"MyBatchModuleName\", \"/MyProject/MyFolder/MyModule\")" That "MyBatchModuleName" value appears in the Registry here along with other settings: ... HKEY_CURRENT_USER\Software\Telelogic\DOORS\9.2\Config
|